<% unless cart.items.empty? %>
    <div class="cart-title"><%= I18n.t 'layout.cart.title' %></div>
    <table>

        <%= render(:partial => 'cart_item', :collection => cart.items) %>

        <tr class="total-line">
            <td colspan="2">Total</td>
            <td class="total-cell"><%= number_to_currency(cart.total_price) %></td>
        </tr>
        <tr class="total-line">
            <td colspan="2">
                <%= button_to I18n.t('layout.cart.button.checkout'), :action => :checkout %>
            </td>
            <td colspan="2" align="right">
                <% form_remote_tag :url => { :action => :empty_cart } do %>
                    <%= submit_tag I18n.t('layout.cart.button.empty') %>
                <% end %>
            </td>
        </tr>

    </table>
<% end %>